package com.example.brisk.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.brisk.entity.Book;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.brisk.vo.R;
import com.example.brisk.vo.req.BookSaveReqVo;
import com.example.brisk.vo.req.BookUpadateReqVo;

import java.util.List;

public interface IBookService extends IService<Book> {

    R saveBook(BookSaveReqVo vo);

    R updateById(BookUpadateReqVo vo);

    R<Book> getBookById(Integer id);

    R updateBook(BookUpadateReqVo vo);

    R<List<Book>> getBookList();

    R removeBook(Integer id);

    R<Page<Book>> getBookListByPage(Integer pageNo, Integer pageSize);
}
